/**
 * cookies存储封装
 */

import Cookies from 'js-cookie';
// 设置cookie
export const setCookie = (name: string, value: string, expires?: number | Date) => {
    Cookies.set(name, value, { expires });
};
// 删除cookie
export const removeCookie = (name: string) => {
    Cookies.remove(name);
};
// 获取cookie
export const getCookie = (name: string) => {
   return Cookies.get(name);
};